﻿<Controls:SinacorWindow
    
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
    xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"
    
	xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    
    WindowStartupLocation="CenterScreen" 
    AutoContentHeight="False" 
    AutoContentWidth="True"
    WindowState="Normal" 
    Title="{DynamicResource Bovespa.Alocacao.Label.ConsultaErrosComitente}"
	Width="800" Height="600" 
    MinWidth="288" MinHeight="150"
	x:Class="Sinacor.UI.Bovespa.Alocacao.View.SmartClient.ConsultaErroComitentes"
    ModulePlus="true"
    ModuleId="ORD">
    <Controls:SinacorExpanderContainer x:Name="ExpanderContainer" VerticalAlignment="Stretch">
        <Controls:SinacorExpander Header="{DynamicResource Bovespa.Alocacao.Label.ConsultaErrosComitente}" 
								  Grid.Row="2" 
								  x:Name="expanderErros"
								  HorizontalAlignment="Stretch"
								  VerticalAlignment="Stretch" 
								  IsExpanded="True" 
								  Width="Auto"
								  Height="Auto"
								  Margin="0,0,0,0">
            <Grid VerticalAlignment="Stretch">
                <Controls:SinacorDataGrid Grid.Row="0" x:Name="DtgErrosAlocacoesComitentes" 
										  Margin="0,0,0,0"
										  HorizontalAlignment="Stretch" 										
                                          Width="Auto" 										
                                          VerticalAlignment="Top" 
                                          Height="377"
                                          ItemsSource="{Binding ListaErrosAlocacoesComitentes}"
                                          SelectionMode="Single" 
                                          BufferedSelectionChanged="DtgErrosAlocacoesComitentes_BufferedSelectionChanged">
                    <Controls:SinacorDataGrid.ContextMenuTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <Controls:SinacorContextMenuItem x:Name="CmiAtualizar"
        							Header="{DynamicResource Bovespa.Alocacao.Label.Atualizar}"
                                    Click="CmiAtualizar_Click" />
                            </StackPanel>
                        </DataTemplate>
                    </Controls:SinacorDataGrid.ContextMenuTemplate>
                    <Controls:SinacorDataGrid.Columns>
                        <Controls:Column Name="DtPregao"
            				Title="Bovespa.Alocacao.Label.DataPregao"
            				IsRequired="True"
            				AllowInsert="False"
            				AllowUpdate="False" 
            				HorizontalCellAlignment="Left"
                            DisplayMemberPath="DataPregao"/>

                        <Controls:Column Name="Cliente"
            				Title="Bovespa.Alocacao.Label.Cliente"
            				IsRequired="True"
            				AllowInsert="False"
            				AllowUpdate="False" 
            				HorizontalCellAlignment="Left"
                            DisplayMemberPath="ApelidoCliente"/>

                        <Controls:Column Name="Ativo"
            				Title="Bovespa.Alocacao.Label.Ativo"
            				IsRequired="True"
            				AllowInsert="False"
            				AllowUpdate="False" 
            				HorizontalCellAlignment="Left"
                            DisplayMemberPath="CodigoNegociacao" />

                        <Controls:Column Name="Negocio"
            				Title="Bovespa.Alocacao.Label.Negocio"
            				IsRequired="True"
            				AllowInsert="False"
            				AllowUpdate="False" 
            				HorizontalCellAlignment="Left"
                            DisplayMemberPath="NumeroNegocio" />

                    </Controls:SinacorDataGrid.Columns>
                </Controls:SinacorDataGrid>
                <Controls:SinacorGroupBox HorizontalAlignment="Stretch" VerticalAlignment="Top" Header="{DynamicResource Bovespa.Alocacao.Label.Erros}" Margin="0,381,0,0" Height="110" Width="Auto" x:Name="GrpErros">
                    <Grid VerticalAlignment="Stretch">
                        <Controls:SinacorLabel HorizontalAlignment="Left" Content="{DynamicResource Bovespa.Alocacao.Label.Erro01}" Width="67"/>
                        <Controls:SinacorTextBox x:Name="TxtErro1" VerticalAlignment="Top" TextWrapping="Wrap" Margin="71,0,0,0" Height="21" Width="650" HorizontalAlignment="Left" IsEnabled="False" Text="{Binding ErroAlocacaoComitenteAtual.Erro1.Descricao}"/>
                        <Controls:SinacorLabel HorizontalAlignment="Left" Content="{DynamicResource Bovespa.Alocacao.Label.Erro02}" Width="67" Margin="0,25,0,0"/>
                        <Controls:SinacorTextBox x:Name="TxtErro2" VerticalAlignment="Top" TextWrapping="Wrap" Margin="71,25,0,0" Height="21" Width="650" HorizontalAlignment="Left" IsEnabled="False" Text="{Binding ErroAlocacaoComitenteAtual.Erro2.Descricao}"/>
                        <Controls:SinacorLabel HorizontalAlignment="Left" Content="{DynamicResource Bovespa.Alocacao.Label.Erro03}" Width="67" Margin="0,50,0,0"/>
                        <Controls:SinacorTextBox x:Name="TxtErro3" VerticalAlignment="Top" TextWrapping="Wrap" Margin="71,50,0,0" Height="21" Width="650" HorizontalAlignment="Left" IsEnabled="False" Text="{Binding ErroAlocacaoComitenteAtual.Erro3.Descricao}"/>
                    </Grid>
                </Controls:SinacorGroupBox>
            </Grid>
        </Controls:SinacorExpander>

    </Controls:SinacorExpanderContainer>
</Controls:SinacorWindow>